package com.hc.activity;

import com.hc.R;
import com.hc.activity.util.ActivityApplicationUtil;

import android.app.TabActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.widget.TabHost;



public class AppListActivity extends TabActivity{
	
	
    @Override

    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        TabHost tabHost = getTabHost();
      //当前的activity加入到关闭集合中
    ActivityApplicationUtil.getInstance().addActivity(this);
        

        LayoutInflater.from(this).inflate(R.layout.app_tab, tabHost.getTabContentView(), true);

 

        tabHost.addTab(tabHost.newTabSpec("tab1")

                .setIndicator("tab1")

                .setContent(R.id.tab1));

        tabHost.addTab(tabHost.newTabSpec("tab3")

                .setIndicator("tab2")

                .setContent(R.id.tab2));

        tabHost.addTab(tabHost.newTabSpec("tab3")

                .setIndicator("tab3")

                .setContent(R.id.tab3));

    }



}
